#pragma once


#include "../include/common.hpp"
class ImagePreprocess
{
public:
    uint16_t deal_H = ROWCOMMON;
    uint16_t deal_W = COLCOMMON;
    Mat struct_ero = getStructuringElement(0,Size(7,7));
    void Image_preprocessing(Mat &src, Mat &dst)
    {   
        dst = src.clone();
        resize(dst,dst,Size(deal_W,deal_H));
        cvtColor(dst,dst,COLOR_BGR2GRAY);
        threshold(dst,dst,0,255,THRESH_OTSU);
        medianBlur(dst,dst,5);     
             
   }

};



